import request from '@/utils/request'
// -------- 题目 --------

// 根据科目获取题目 /assess/question/list
export const getQuestionListApi = (params) =>{
    return request({
        url: '/assess/question/list',
        method: 'get',
        params
    })
}

// 添加题目列表 /assess/question/addlist/{examId}
export const addQuestionListApi = (examId,data) =>{
    return request({
        url: `/assess/question/addlist/${examId}`,
        method: 'post',
        data
    })
}

// 获取学习情况列表 /assess/examResult/listByExam
export const getExamResultListByExamApi = (params) =>{
    return request({
        url: `/assess/examResult/listByExam`,
        method: 'get',
        params
    })
}